from PySide6.QtCore    import Qt
from PySide6.QtWidgets import QMainWindow, QListWidget, QTextEdit
from PySide6.QtWidgets import QHBoxLayout, QWidget

from filelistview      import FileListView


class FileRenamer(QMainWindow):
    def __init__(self, width, height):
        super().__init__()

        self.sidebar = FileListView()
        self.journal = QTextEdit()

        wtcentral = QWidget()
        ctcentral = QHBoxLayout(wtcentral)
        ctcentral.setSpacing(0)
        ctcentral.setContentsMargins(0, 0, 0, 0)
        ctcentral.addWidget(self.sidebar)
        ctcentral.addWidget(self.journal)
        ctcentral.setStretch(0, 1)
        ctcentral.setStretch(1, 3)

        self.setCentralWidget(wtcentral)
        self.resize(0.8*width, 0.7*height)

